// array
let array = [10, 20, 30];
for (let number of array) {
	number += 1;
	console.log(number);
}
array = new Uint8Array([0x00, 0xff]);
for (let value of array) {
	console.log(value);
}

// string
let string = 'imooc';
for (let character of string) {
	console.log(character);
}

// Set
let set = new Set([1, 1, 2, 2, 3, 3]);
for (let element of set) {
	console.log(element);
}

// Map
let map = new Map([['a', 1], ['b', 2], ['c', 3]]);
for (let [key, value] of map) {
	console.log(key, value);
}

// array-like object
function f() {
	for (let argument of arguments) {
		console.log(argument);
	}
}
f(1, 2, 3);
